home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Tools / Development / PowerD / powerd / source / lib / powerd_lib.lha / PowerD_PPC / CStrCmp.c < prev    next >
Text File  |  1980-05-18  |  204b  |  14 lines

  1. int CStrCmp(const char *s1,const char *s2)
  2.   const unsigned char *p1=s1,*p2=s2;
  3.   unsigned long r,c;
  4.  
  5.   c=0;  
  6.   do
  7.   {
  8.     r=*p1++;
  9.     c=*p2++;
  10.   } while (!(r-=c) && (unsigned char)c);
  11.   return r;
  12. }
  13.